package com.parking.renters.exceptionCode;

/**
 * 出租客异常枚举
 */
public enum RentersExceptionCode {
    /*代理对象（异常编号：内容）*/

    RENTERS_INFO_NOT_EXISTS(4503,"出租客信息不存在"),
    RENTERS_NOT_EXISTS(4502,"出租客账号不存在"),
    PARAM_NOT_EXISTS(4501,"参数不存在"),
    RENTERS_IS_NOT_NULL_TEL(4101,"你的手机号已被注册"),
    RENTERS_IS_NOT_NULL_ACCOUNT(4102,"你的账号已被注册"),

    RENTERS_PHONE_ONE_MINUTER(4103,"一分钟内不能再次发送短信"),
    RENTERS_PHONE_FIVE_ONE(4104,"一小时内只能发送五次短信"),
    RENTERS_STATE_IS_NOT_ENABLE(4105,"你的账号已被禁用或删除"),
    RENTERS_LOG_IN(4106,"你的账号已经登录,请先退出登录"),
    RENTERS_PHONE_CODE_ISNO(4107,"验证码错误"),
    RENTERS_REAL_NAME_NO(4108,"还没有实名认证,请先实名认证"),
    RENTERS_REAL_NAME_YESS(4109,"该账户已经实名"),
    RENTERS_STATE_IS_ENABLE(4110,"该账号已经是启用状态"),
    RENTERS_STATE_IS_DELETE(4110,"该账号已经是删除状态"),
    RENTERS_STATE_IS_DISABLE(4110,"该账号已经是禁用状态"),
    RENTERS_DILE_NO(4111,"格式错误"),
    RENTERS_CERTIFIED_ISNO(4112,"物业不存在"),
    RENTERS_CERTIFIED_NAME(4113,"物业名称有误"),
    RENTERS_ROLE_IS_NOT_RENTERS(4114,"该账号不是出租客")


    ;


    /**
     * code:异常编号
     * message:内容
     */
    private Integer code;
    private String message;

    /**
     * RentersExceptionCode:构造方法
     * @param code:异常编号
     * @param message:内容
     */
    RentersExceptionCode(Integer code,String message){
        this.code=code;
        this.message=message;
    }

    /**
     * 编码、消息get方法
     * @return
     */
    public Integer getCode() {
        return code;
    }
    public String getMessage() {
        return message;
    }
}
